﻿using System.Collections.Generic;
using Kobets.Automation.Chimera.Common;

namespace Kobets.Automation.Chimera.Orchestrator.Shared
{
    public class ExecutionComparer : IEqualityComparer<Executions>
    {
        public bool Equals(Executions x, Executions y)
        {
            return x.testcase == y.testcase;
        }

        public int GetHashCode(Executions obj)
        {
            return obj.testcase == null ? 0 : obj.testcase.GetHashCode();
        }
    }
}
